<?php
 
function smarty_modifier_video_time($time, $seperator = ':')
{
    $minutes = intval(($time / 60) % 60); 
    $clock = str_pad($minutes, 1, "0", STR_PAD_LEFT). $seperator;
    $seconds = intval($time % 60); 
    $clock .= str_pad($seconds, 2, "0", STR_PAD_LEFT);
    return $clock;
}

?>